#include "net/udp.h"
#include "net/ip.h"
#include <stdlib.h>
#include <stdio.h>

int udp_init(void) {
	// 实际上 ip 层会调用注册，示例里不再复杂
	return 0;
}

int udp_send(uint32_t dst_ip, uint16_t dst_port, uint16_t src_port, const uint8_t* payload, size_t len) {
	return ip_send_udp(dst_ip, dst_port, src_port, payload, len);
}
